package com.harry.decoupling.impl.expand.timer_job;

import java.util.Map;

import com.harry.decoupling.defi.expand.TimerJob;
import com.harry.decoupling.impl.tool.AwsBinaryDataManagerImpl;
import com.harry.utility.BeanCtxUtils;

public class AwsCleanS3Job implements TimerJob {

	@Override
	public String getCron() {
		return "0 0/3 * * * ?";
	}

	@Override
	public Boolean getIfRunning() {
		return true;
	}

	@Override
	public void execute(Map<String, Object> dataOut) throws Exception {
		BeanCtxUtils.getBeanByType(AwsBinaryDataManagerImpl.class).cleanFileJob();
	}
}
